package main

import (
	"github.com/gin-gonic/gin"
	"libraryAutoGrab/controller"
	"libraryAutoGrab/middleware"
)

func register(r *gin.Engine)  {
	r.Use(middleware.Log2Mysql())
	r.POST("/grab", controller.GrabHandler)
	r.POST("/stop", controller.StopHandler)
}
